<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>switch语句</title>
<script language="javascript" type="text/javascript">
var weekday="星期一";
switch(weekday)
{
	case "星期一":
		document.write("新的一周开始了!");
		break;
	case "星期五":
		document.write("明天就可以休息了！");
		break;
	default:
		document.write("还要努力学习！");
		break;
}

</script>
</head>

<body>
</body>
</html>
